﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ross.EntityFramework.Model
{
    [Table("CourseClass")]
    public class CourseClass : IEntity<int>
    {
        //自增长ID
        public int ID { get; set; }
        //分类名称
        [Required]
        [StringLength(50)]
        public string ClassName { get; set; }
        //分类索引
        [Required]
        public string ClassIndex { get; set; }
        //父级ID
        public int ParentID { get; set; }
        //层级
        public int Lev { get; set; }
        //备注
        public string CommentText { get; set; }
    }
}
